package com.d2rv.model;

import com.d2rv.offscreen.OffScreen3D;
import java.io.File;
import processing.core.PApplet;

/**
 * Manager for the user model
 *
 * @author Darrieutort A., Dupouy A., Rossignol L., Van Poucke A.
 */
public class UserModelManager {

    private UserModel usermodel;

    /**
     * Default constructor.
     *
     * @param parent the current application
     */
    public UserModelManager(PApplet parent) {
        this.usermodel = new UserModel(parent, parent.dataPath("models" + File.separator + "user" + File.separator + "user.obj"));
    }

    /**
     * Triggers the draw method of the object
     *
     * @param parent the current offscreen
     */
    public void draw(OffScreen3D parent) {
        this.usermodel.draw(parent);
    }

    /**
     * Returns the usermodel 
     *
     * @return the usermodel 
     */
    public UserModel usermodel() {
        return this.usermodel;
    }
}